Skip to content

Lazy load multi-concurrent utilities for cold start improvement#211

Merged
darklight3it merged 4 commits into
mainfrom
fix/lazy-loading-mc-utils
Jun 25, 2026
Merged

Lazy load multi-concurrent utilities for cold start improvement#211
darklight3it merged 4 commits into
mainfrom
fix/lazy-loading-mc-utils

Conversation

@darklight3it

Copy link
Copy Markdown
Contributor

Issue #, if available:

N/A

Description of changes:

Lazy load lambda_multi_concurrent_utils to avoid importing multiprocessing and socket at module load time for the standard (single-invoke) Lambda execution path. This reduces cold start overhead when multi-concurrent mode is not in use.

Changes:

  • Moved from .lambda_multi_concurrent_utils import MultiConcurrentRunner from top-level import to inside the if config.is_multi_concurrent: branch in __main__.py
  • Bumped version to 4.0.1
  • Added changelog entry

Target (OCI, Managed Runtime, both):

Both

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@darklight3it darklight3it force-pushed the fix/lazy-loading-mc-utils branch from 78f6604 to c23d7d6 Compare June 25, 2026 13:51
@darklight3it darklight3it force-pushed the fix/lazy-loading-mc-utils branch from c23d7d6 to 2ff0d2f Compare June 25, 2026 14:09
@darklight3it darklight3it requested a review from M-Elsaeed June 25, 2026 14:09
@benrkia

benrkia commented Jun 25, 2026

Copy link
Copy Markdown
  • Bumped version to 4.0.1
  • Added changelog entry

These 2 changes aren't there

Comment thread awslambdaric/__main__.py Outdated
Comment thread awslambdaric/__main__.py
@darklight3it darklight3it force-pushed the fix/lazy-loading-mc-utils branch from 9002856 to cc8c4f8 Compare June 25, 2026 15:15
@darklight3it darklight3it merged commit ce38ada into main Jun 25, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants